Skip to content

Conversation

@olaservo
Copy link
Member

@olaservo olaservo commented Jan 28, 2025

Motivation and Context

Tools with complex object input schemas can be difficult to work with because we're only given a <textarea/> in the UI.

This change renders fields for nested object fields and also still gives the option to edit and format as JSON.

Example of nested fields:

toolinputs01

Example of JSON mode:

toolinputs02

How Has This Been Tested?

So far, this has been tested on my Windows machine using an extended version of the everything-server sampleLLM tool with complex inputs.

I could use some help testing with other real examples of complex inputs, where the current UI is too limited.

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Related to this issue: #130

@olaservo olaservo mentioned this pull request Jan 28, 2025
@olaservo olaservo marked this pull request as draft February 14, 2025 14:26
@olaservo olaservo changed the title Draft: Add enhanced object input editing Add enhanced object input editing Feb 14, 2025
@olaservo olaservo marked this pull request as ready for review February 14, 2025 16:26
Copy link
Member

@jspahrsummers jspahrsummers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

@jspahrsummers jspahrsummers merged commit 7065d70 into modelcontextprotocol:main Feb 19, 2025
2 checks passed
IgnacioC44 referenced this pull request in MCPJam/inspector Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants